#ifndef _TOUCH_PAD_H_
#define _TOUCH_PAD_H_

#include <stdio.h>
#include <inttypes.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "esp_log.h"
#include "driver/touch_pad.h"
#include "soc/rtc_periph.h"
#include "soc/sens_periph.h"

#include "timer.h"
#include "led.h"

typedef enum
{
    touch_zero = 0,
    touch_one_press,
    touch_one_unpress,
    touch_two_press,
    touch_two_unpress,
    touch_long,
} touch_status;

typedef struct{
    uint8_t flag;
    uint64_t timer;
    touch_status touch;
}btn_struct;

void touch_run(void);



#endif